<?php

namespace app\admin\model;

use think\Model;


class Wxuser extends Model
{
    // 表名
    protected $name = 'wxuser';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'datetime';
    protected $dateFormat='Y-m-d H:i:s';

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    public function detail()
    {
        return $this->belongsTo('Detail', 'detail_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }









}
